package com.mcy.springbatch.service;

import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobParameters;

/**
 * @author : Create By mcy
 * @date : 2019/8/26 11:16:08
 */
public interface BatchService {

    /**
     * 启动Job
     *
     * @param jobName
     * @param jobParameters
     * @return
     */
    JobExecution launch(String jobName, JobParameters jobParameters) throws Exception;
}
